using Sustainalytics.Entities.ESGRatings;

namespace Sustainalytics.ESGRatings.BusinessLogic.Computing.Mappers
{
    using System;

    internal static class EnumConversionExtension
    {
        internal static Type ToESGSetType(this ComparativeGroupEnum value)
        {
            switch (value)
            {
                case ComparativeGroupEnum.IndustryGroup:
                    return typeof(IndustryGroupSet);
                case ComparativeGroupEnum.PeerGroup:
                    return typeof(PeerGroupSet);

                default:
                    throw new ArgumentOutOfRangeException(nameof(value), value, null);
            }
        }
    }
}